export function useRules() {
	return {
		//会员等级表单验证
		memberLevelRules: () => {
			return {
				pid: [{ required: true, message: '请选择父级', trigger: 'change' }],
				levelName: [{ required: true, message: '请输入会员等级名称', trigger: 'blur' }],
				upgrade: [{ required: true, message: '请选择升级条件', trigger: 'change' }],
				commission: [{ required: true, message: '请输入消费佣金比例', trigger: 'blur' }],
				orderCommiss: [{ required: true, message: '请输入订单佣金', trigger: 'blur' }],
			};
		},
	};
}
